namespace ASPNET.StarterKit.IssueTracker.BusinessLogicLayer
{
    using ASPNET.StarterKit.IssueTracker.DataAccessLayer;
    using System;

    public class Role
    {
        private int _Id;
        private string _Name = string.Empty;

        public Role(int id, string name)
        {
            this._Id = id;
            this._Name = name;
        }

        public static RoleCollection GetAllRoles()
        {
            return DataAccessLayerBaseClassHelper.GetDataAccessLayer().GetAllRoles();
        }

        public int Id
        {
            get
            {
                return this._Id;
            }
        }

        public string Name
        {
            get
            {
                return this._Name;
            }
        }
    }
}

